package com.kkb.retailer.center.server.service;


import com.kkb.retailer.center.api.CategoryInfoService;
import com.kkb.retailer.center.common.pojo.CategoryInfo;
import com.kkb.retailer.center.server.mappers.CategoryInfoMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class CategoryInfoServiceImpl implements CategoryInfoService {

    @Autowired
    private CategoryInfoMapper categoryInfoMapper;

    @Override
    public List<CategoryInfo> selectAllCategory() {
        List<CategoryInfo> categories = categoryInfoMapper.selectAllCategory();
        return categories;
    }

    @Override
    public List<CategoryInfo> selectCategoryLevel2() {
        List<CategoryInfo> categories = categoryInfoMapper.selectCategoryLevel2();
        return categories;
    }
}
